package com.iot.ammeter.mapper.web.campus;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.iot.ammeter.dto.web.campus.BuildingDTO;
import com.iot.ammeter.entity.web.campus.Building;
import com.iot.ammeter.mapper.expand.ExpandBaseMapper;
import com.iot.ammeter.query.web.campus.BuildingQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 楼栋 Mapper 接口
 * </p>
 *
 * @author basil
 * @since 2021-09-25
 */
@Mapper
public interface BuildingMapper extends ExpandBaseMapper<Building> {

    /**
     * 获取楼栋列表
     *
     * @param pages         页码
     * @param buildingQuery 查询条件
     * @return IPage
     */
    IPage<BuildingDTO> listBuildings(@Param("pages") Page<BuildingDTO> pages, @Param("buildingQuery") BuildingQuery buildingQuery);
}
